/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.strategy;

import java.math.BigDecimal;

/**
 *
 * @author xiay
 * @since 2020/12/15 9:37 下午
 */
public class Context {

    private CalculatePriceService service;

    public Context(CalculatePriceService service) {
        this.service = service;
    }

    public BigDecimal calculate(BigDecimal originalPrice) {
        return service.getTruePrice(originalPrice);
    }
}
